import { TABLE_VAR_FIST_STR } from '@/consts';
import { Celldata } from '../../types';

/** 判断是否内置字段标识 */
export const isField = (item: Celldata) => {
  const isFieldFlag = new RegExp(`^\\${TABLE_VAR_FIST_STR}{(.*)}$`).test(item.v.m); // @{字段}
  return isFieldFlag;
};
